package com.zmj.sy.mom.srv.aps.bean.entity.lantekpre;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseEntity;
import com.zmj.sy.mom.srv.aps.utils.Comment;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Comment("兰特克套料-推送零件图纸")
@Getter
@Setter
@TableName("tb_third_lantek_push_plan")
public class LantekPushPlan extends BaseEntity {

    @Comment("部件编号")//父PLMID
    private String componentId;

    @Comment("部件编号")//父PLMID
    private String componentName;

    @Comment("工厂编号")
    private String factoryIdk;

    @Comment("需求日期")//计划开始时间
    private LocalDateTime needDate;

    @Comment("下料计划单号")//计划单号（唯一标识）
    private String nestPlanId;

    @Comment("零件编码") //PLMID
    private String partId;

    @Comment("零件名称（件号）")
    private String partName;

    @Comment("零件类型")//1：板材  0：型材
    private Integer partType;

    @Comment("计划套料数量")//包下面套料数量
    private BigDecimal planAmount;

    @Comment("生产加工号")  //生产加工批次号，若没有值 默认传1 |工单包号
    private String processingNo;

    @Comment("分包ID") // 包ID
    private Integer apsOrderId;

    @Comment("产品编号") //订单号
    private String productId;

    @Comment("版本标识 预套：V1 生产：V2")
    private String versionBrief;

    @Comment("推送状态 1 新增待推送 2 修改待推送 3 删除待推送 4 推送成功 5 推送失败")
    private Integer status;

    @Comment("失败原因")
    private String errorMsg;

    @Comment("套料完成数量")
    private BigDecimal planFinishAmount;

    @Comment("订单ID")
    private Integer orderId;

    @Comment("零件唯一号")
    private String uniMaterCode;

    @Comment("推送方：1 海克斯康 2 兰特克 ")
    private Integer pushType;

    @Comment("版本号，默认为1")
    private Integer versionNum;

    @Comment("消费状态 0 初始生成 1 消费中 2 消费完成")
    private Integer consumeStatus;

    @Comment("替代材质")
    private String replaceTexture;

    @Comment("替代厚度")
    private BigDecimal replaceThickness;

    @Comment("替换数量")
    private BigDecimal replaceQuantity;

    @Comment("钢板长（mm）")
    private Integer plateLength;

    @Comment("钢板宽（mm）")
    private Integer plateWidth;

    @Comment("预套料版本号")
    private Integer preVersion;

}
